package com.huangjue.backend.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class AiReport {
    @JsonProperty("task_state")
    private String taskState;

    @JsonProperty("task_assigned_worker_id")
    private String taskAssignedWorkerId;

    @JsonProperty("task_id")
    private String taskId;

    @JsonProperty("task_content")
    private String taskContent;

    @JsonProperty("task_result")
    private String taskResult;

    @JsonProperty("subtasks_info")
    private List<SubtasksInfo> subtasksInfo;

    @Data
    public static class SubtasksInfo {
        private String id;
        private String content;
        private String state;


        @JsonProperty("assigned_worker_id")
        private String assignedWorkerId;

        @JsonProperty("agent_description")
        private String agentDescription;

        @JsonProperty("agent_role_name")
        private String agentRoleName;

        private String result;

    }
}
